<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>主页面</title>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/jquery.js"></script>

<script type="text/javascript">
	onload=function(){
		 <c:if test="${meg!=null}">
		alert('${meg}');
		</c:if> 
		$('#a').bind('click',ato);
		$('#c').bind('click',quite);
	}
	function ato(){
		window.location="<%=request.getContextPath() %>/plan/0";
	}
	function quite(){
		 if(confirm('确定退出吗？')){
			window.location="<%=request.getContextPath() %>/user/exit.html";
		} 
	}
</script>
<style type="text/css">
ul li{
	background-color:green;
	list-style:none;
	height-line:40px;
	margin-top:10px;
	width:100px;
	padding:20px;
	font-size:20px;
	color:white;
	font-weight:800;
}
ul li:hover{
	cursor:pointer;
	background-color:yellow;
}

</style>
</head>
<body>
 <div  style="padding-right:20px;font-color:green;height:40px;">
 <marquee direction="right" >欢迎您！
 <font style="font-weight:bold" color="red" weight="blod" size="24">${sessionScope.username }</font>
 </marquee>
 
 </div>
 <ul>
 	<li id="a">查看计划</li>
 	<li id="b">用户管理</li>
 	<li id="c">退出</li>
 </ul>

</body>
</html>